﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:XAudio2Controls"
                    x:Class="XAudio2Controls.XA2StatusBar">

    <!--Region: XAudio2StatusBar-->
    <Style TargetType="{x:Type local:XAudio2StatusBar}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:XAudio2StatusBar}">
                    <Grid x:Name="LayoutRoot">
                        <Border 
                        BorderThickness=".5"
                        >
                            <StatusBar 
                            
                            HorizontalAlignment="Stretch" 
                            x:Name="XAudio2_StatusBar"                             
                            VerticalContentAlignment="Bottom"
                            HorizontalContentAlignment="Left" DataContext="{Binding ElementName=XAudio2_StatusBar}">
                                <StatusBarItem Content="Status" 
                                           x:Name="statusBarPanel1" 
                                           FontSize="14">
                                </StatusBarItem>
                            </StatusBar>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--EndRegion: XAudio2StatusBar-->

</ResourceDictionary>